import { Application } from 'express';
import usersRouter from './api/controllers/users/router';
import commonRouter from './api/controllers/common/router';
import operationalRouter from './api/controllers/operational/router';
import goodsRouter from './api/controllers/goods/router';
import shopRouter from './api/controllers/shop/router'
import orderRouter from './api/controllers/order/router'
import evaluationRouter from './api/controllers/evaluation/router';
import statisticalRouter from './api/controllers/statistical/router';

export default function routes(app: Application): void {
  app.use('/api/v1/users', usersRouter);
  app.use('/api/v1/common',commonRouter);
  app.use('/api/v1/operational',operationalRouter);
  app.use('/api/v1/goods',goodsRouter);
  app.use('/api/v1/shop',shopRouter)
  app.use('/api/v1/order',orderRouter)
  app.use('/api/v1/evaluation',evaluationRouter)
   app.use('/api/v1/statistical', statisticalRouter);
}
